<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>OA协同办公系统</title>
		<link href="css/background.css" rel="stylesheet" type="text/css" />
		<link href="css/table.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript" src="js/openwindow.js"></script>
		<script type="text/javascript" src="js/openwindow.js"></script>
		<script type="text/javascript">
	
	function createDraft(id){
		var url="workFlowFormDraft.action?flowId="+id;
		openWindow(url,800,600);
	}
</script>
	</head>
	<body>
		<table align="center" border="0" cellpadding="0" cellspacing="0"
			width="98%">
			<tbody>
				<tr>
					<td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
					<td style="background: url('image/wsoa_window_002.gif');">
						<table border="0" cellpadding="0" cellspacing="0">
							<tbody>
								<tr>
									<td align="center"
										style="background: url('image/wsoa_window_002.gif');"
										width="10">
										<img src="image/center_19.gif">
									</td>
									<td align="center"
										style="background: url('image/wsoa_window_002.gif');"></td>
									<td>
										工作流程 &gt; 我的流程 &gt; 流程起草
									</td>
								</tr>
							</tbody>
						</table>
					</td>
					<td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
				</tr>
				<tr>
					<td style="background: url('image/wsoa_window_010.gif');" width="1">
						&nbsp;
					</td>
					<td>

						<table style="margin-top: 5px;" cellpadding="2" cellspacing="1">
							<tr>
								<c:forEach items="${flowtypelist}" var="flow" varStatus="index">
									<c:choose>
										<c:when test="${index.count<=4}">
											<td valign="top" width="260px">
												☒<font style="font-size: 13px; font-weight:700;">${flow.name}</font>
												<c:forEach items="${workList}" var="task">
													<c:if test="${flow.id==task.typeId}">
														<div style="margin-bottom: 5px;margin-top: 5px">&nbsp;&nbsp;·<a href="javascript:createDraft('${task.id}')">${task.name}</a></div>
													</c:if>
												</c:forEach>
											</td>
										</c:when>
										<c:otherwise>
											<tr>
												<td valign="top" width="300px">
													☒<font style="font-size: 13px; font-weight: 700;">${flow.name}</font>
													<c:forEach items="${workList}" var="task">
														<c:if test="${flow.id==task.typeId}">
															<div style="margin-bottom: 5px;margin-top: 5px">&nbsp;&nbsp;·<a href="javascript:createDraft('${task.id}')">${task.name}</a></div>
														</c:if>
													</c:forEach>
												</td>
											</tr>
										</c:otherwise>
									</c:choose>
								</c:forEach>
							</tr>
						</table>

					</td>
					<td style="background: url('image/wsoa_window_006.gif');" width="1">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td height="1" width="1">
						<img src="image/wsoa_window_009.gif" height="16" width="14">
					</td>
					<td style="background: url('image/wsoa_window_008.gif');"
						height="1"></td>
					<td height="1" width="1">
						<img src="image/wsoa_window_007.gif" height="16" width="12">
					</td>
				</tr>
			</tbody>
		</table>
	</body>
</html>